DXL Layout Script

I'm trying to create a layout script that concatenates data from three columns together.  I come into a problem with objects that do not have data in these columns since I want to include a ":" between the data.  So I'd like to set up an if statement that displays nothing when nothing is in the first of the three columns.  I came up with this, but it gives invalid syntax. . .

if obj."Criteria 1" = null {
}
else
{display probeAttr_(obj, "Criteria 1") ":"  probeAttr_(obj, "Criteria 1 Modifier") probeAttr_(obj, "Criteria 1 Object Modifier")
}


stevenson - Fri Aug 30 15:39:33 EDT 2013

Re: DXL Layout Script
llandale - Fri Aug 30 15:49:31 EDT 2013

  • if (obj."Criteria 1" "" == null) {

"=" means assign, "==" means compare.  You also need to concatenate a string (the "") to you obj.attr reference to make sure the value is retrieved.

-Louie